package com.example.administrator.dagger2demo.domain;

/**
 * Created by Administrator on 2016/4/28.
 */
public class HttpResultBean<T> {
    public int code;
    public String info;
    //用来模仿Data
    public T data;
    //总收入
    String all_total;
    //可用金额
    String deal_total;


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getAll_total() {
        return all_total;
    }

    public void setAll_total(String all_total) {
        this.all_total = all_total;
    }

    public String getDeal_total() {
        return deal_total;
    }

    public void setDeal_total(String deal_total) {
        this.deal_total = deal_total;
    }

    @Override
    public String toString() {
        StringBuffer sb = new StringBuffer();
        sb.append("code = " + code + " info = " + info + " all_total = " + all_total + " deal_total = " + deal_total);
        if (null != data) {
            sb.append(" data : " + data.toString());
        }
        return sb.toString();
    }
}
